<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>规格文件</title>
  <link rel="stylesheet" href="../lib/layui/css/layui.css">
  <link rel="stylesheet" href="../styles/css/index.css">
  <style>
    .txt {
      color: red;
    }
  </style>
</head>

<body>
<div class="headTitle">
  规格文件添加
</div>
  <div class="''">
    <div class="w-title"><span class="w-blueline"></span><a href="###">规格文件</a></div>
    <form action="" class="layui-form">
      <div class="layui-row">
        <div class="layui-col-md1">&nbsp;</div>
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label"><i class="txt">*</i>设备号</label>
            <div class="layui-input-block">
              <input type="text" name="title" required="" lay-verify="required" placeholder="请输入设备号" autocomplete="off"
                class="layui-input">
            </div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-md1">&nbsp;</div>
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label"><i class="txt">*</i>名称</label>
            <div class="layui-input-block">
              <select name="sec" lay-verify="required">
                <option value="">请选择</option>
                <option value="1">请选择</option>
              </select>
            </div>
          </div>
        </div>
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label"><i class="txt">*</i>数据格式</label>
            <div class="layui-input-block">
              <input type="text" name="title1" required="" lay-verify="required" placeholder="请输入数据格式"
                autocomplete="off" class="layui-input">
            </div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-md1">&nbsp;</div>
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label"><i class="txt">*</i>上限</label>
            <div class="layui-input-block">
              <input type="text" name="title2" required="" lay-verify="required" placeholder="请输入上限" autocomplete="off"
                class="layui-input">
            </div>
          </div>
        </div>
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label"><i class="txt">*</i>下限</label>
            <div class="layui-input-block">
              <input type="text" name="title3" required="" lay-verify="required" placeholder="请输入下限" autocomplete="off"
                class="layui-input">
            </div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-md1">&nbsp;</div>
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label"><i class="txt">*</i>起始位置</label>
            <div class="layui-input-block">
              <input type="text" name="title4" required="" lay-verify="required" placeholder="请输入起始位置"
                autocomplete="off" class="layui-input">
            </div>
          </div>
        </div>
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label"><i class="txt">*</i>长度</label>
            <div class="layui-input-block">
              <input type="text" name="title5" required="" lay-verify="required" placeholder="请输入长度" autocomplete="off"
                class="layui-input">
            </div>
          </div>
        </div>
        <div class="layui-col-md1">&nbsp;</div>
      </div>
      <div class="layui-row">
        <div class="layui-col-md1">&nbsp;</div>
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label"><i class="txt">*</i>偏差</label>
            <div class="layui-input-block">
              <input type="text" name="title6" required="" lay-verify="required" placeholder="请输入偏差" autocomplete="off"
                class="layui-input">
            </div>
          </div>
        </div>
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label"><i class="txt">*</i>计算公式</label>
            <div class="layui-input-block">
              <input type="text" name="title7" required="" lay-verify="required" placeholder="请输入计算公式"
                autocomplete="off" class="layui-input">
            </div>
          </div>
        </div>
        <div class="layui-col-md1">&nbsp;</div>
      </div>
      <div class="layui-row aligncenter">
        <div class="layui-col-md4">&nbsp;</div>
        <div class="layui-col-md4" style="text-align: center;">
          <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
          <button type="reset" class="layui-btn layui-btn-primary">取消</button>
        </div>
        <div class="layui-col-md4">&nbsp;</div>
      </div>
    </form>
  </div>
  <script src="../lib/layui/layui.js"></script>
  <script>
    layui.use(['jquery'], function () {
      var table = layui.table;
      var $ = jQuery = layui.$;
      //第一个实例
    });
  </script>
</body>

</html>

<script>
  layui.use('form', function () {
    var form = layui.form;
    //监听提交
    form.on('submit(formDemo)', function (data) { // 提交时间回调
      layer.msg(JSON.stringify(data.field));
      return false;
    });
  });
</script>